package com.baizhi.service.impl;

import com.baizhi.dao.CountryDao;
import com.baizhi.entity.Country;
import com.baizhi.service.CountryService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
@Service
public class CountryServiceImpl implements CountryService {
    @Resource
    private CountryDao countryDao;
    @Override
    @Transactional(readOnly = true)
    public List<Country> selectAll() {
        List<Country> countries = countryDao.selectAll();
        return countries;
    }
}
